package com.hgyc.mom.eam.enums;

/**
 * 设备维修状态字典类
 * 自动生成的枚举类，请勿手动修改

 * @author fwj
 * @since 2025-08-19 15:47:36
 * @version 1.0
 **/
public enum EquipmentRepairStatusEnum {
    REQUEST("request", "报修"),
    WAITING("waiting", "待维修"),// TODO 有派工功能时使用
    IN_MAINTENANCE("in_maintenance", "维修中"),
    SUSPEND("suspend", "暂停维修"),
    VERIFY("verify", "交机确认"),
    FINISH("finish", "已完成"),
    CLOSE("close", "关闭")
    ;

    private final String value;
    private final String label;

    EquipmentRepairStatusEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getValue() {
        return this.value;
    }

    public String getLabel() {
        return this.label;
    }

    public static EquipmentRepairStatusEnum of(String value) {
        if (value == null) {
            return null;
        }
        for (EquipmentRepairStatusEnum item : EquipmentRepairStatusEnum.values()) {
            if (item.value.equals(value)) {
                return item;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.label;
    }
}

